/**
Copyright (c) 2008 Arnaud Fabre <arnaud333@gmail.com>
Copyright (c) 2008 Pierre "delroth" Bourdon <root@delroth.is-a-geek.org>

This file is part of Vos Tutos Offline.

Vos Tutos Offline is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Vos Tutos Offline is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Vos Tutos Offline.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _VTO_MENUBAR_H
#define _VTO_MENUBAR_H

#include <QMenuBar>
#include <QMenu>
#include <QAction>
#include <QDockWidget>
#include <QKeySequence>

class VTOMainWindow;
class VTOToolBar;

class VTOMenuBar : public QMenuBar
{
    Q_OBJECT

friend class VTOMainWindow;

public:
    VTOMenuBar(VTOMainWindow* parent);
    void updateMenu(int type);

protected:
    void initMenus();
    void initActions();
    void connectTogether();
    void disabledTutoMenu();
    void setIcons();
    
    QAction* viewTutotreeAct;
    QAction* showAboutBoxAct;
    
    QMenu* fileMenu;
        QMenu* newMenu;
            QAction* newNewsItem;
            QAction* newMiniTutorial;
            QAction* newBigTutorial;
        QAction* open;
	QAction* save;
	QAction* saveAs;
	QMenu* docExport;
		QAction* exportZcode;
		QAction* exportLatex;
		QAction* exportHtml;
		
	QAction* close;
        QAction* quit;

    QMenu* editMenu;
        QAction* undo;
        QAction* redo;
        QAction* copy;
        QAction* cut;
        QAction* paste;
        QAction* selectAll; 
        

    QMenu* tutoMenu;
        QAction* up;
        QAction* down;
        QAction* remove;


        QMenu* bigtutMenu;
            QAction* newChapter;
	    QAction* newMinituto;
		QMenu* minitutMenu;
	    QAction* newPart;

	QMenu* optionMenu;
		QAction* latexconfig;
	
    QMenu* viewMenu;

    QMenu* helpMenu;

    VTOMainWindow* parent;
    QDockWidget* tutotreeDock;
};

#endif

